function out = f_spiral_classification_MultiF(C,x_spiral,y_spiral)

N_freq = size(C,1);

for i=1:length(x_spiral)
    for ifreq = 1:N_freq
        sd(ifreq) =  (C(ifreq,1)-x_spiral(ifreq,i)).^2 +   (C(ifreq,2)-y_spiral(ifreq,i)).^2 ;
    end
    dist(i) = sum(sd);
end
[Y minIndex] = min(dist);
out.class = minIndex;
